﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Views.Admin.Controls
{
    public partial class ErrorControl : System.Web.UI.UserControl
    {
        public string Text
        {
            get
            {
                return ErrorCell.InnerText;
            }
            set
            {
                ErrorCell.InnerText = value;
                ErrorTable.Visible = true;
            }
        }

        protected void Page_Init(object sender, EventArgs e)
        {
            ErrorTable.Visible = false;
        }
    }
}